# Use include() to add paths from the catalog application
from django.conf.urls import include
from django.urls import path
from django.views.generic import RedirectView
from django.conf import settings
from django.conf.urls.static import static

from catalog import views

urlpatterns = [
    path('catalog/', include('catalog.urls')),
    path('', views.index, name='index'),
]

urlpatterns += [
    path('', RedirectView.as_view(url='/catalog/')),
]


urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)


